home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / Text Capture FKEY / ⁄* changes *⁄.c next >
Text File  |  1992-04-19  |  4KB  |  138 lines

  1. #if justacomment
  2.  
  3. 2.0
  4. ---
  5.  
  6. Construct the name of the preferences file from the resource name and the
  7. string " Settings", rather than as a static constant, so that there will
  8. be one less place to change the version number.  Remaining places:  The
  9. resource name, the 'vers' resource, and the embedded PICT.
  10.  
  11.  
  12. 1.9
  13. ---
  14.  
  15. It seems that FlushInstructionCache crashes on 68000s, even though TN 261
  16. says that it is implemented in System 6.0.3 and later.  So now I call
  17. TrapAvailable first.
  18.  
  19.  
  20. 1.8
  21. ---
  22.  
  23. Flush instruction case after moving code into ToolScratch in My_EndUpdate,
  24. for 68040 compatibility.
  25.  
  26. Previously, using the FKEY reentrantly to capture its own preferences
  27. dialog could cause a crash.  This was because the second invocation
  28. closed the preferences file before the first was finished with it.
  29. Now, unless we are going to configure, Get_prefs opens the prefs file
  30. read-only, and closes it as soon as it's done.
  31.  
  32. Since I search for the preferences file by name, it seems appropriate
  33. to lock the name.  As long as I was using HSetFInfo, I used that to set
  34. the type and creator, whereas I previously used HCreate before
  35. HCreateResFile.
  36.  
  37. Previously, calls to HOpenResFile or HCreateResFile could crash 68000
  38. machines, due to their problem with stuff in the high byte of the name
  39. pointer.  So I used FIXPC before setting up A4.
  40.  
  41.  
  42. 1.7b2 = 1.7
  43. -----
  44.  
  45. Changed dialog to use "copy to private clipboard" instead of "fake
  46. activate", using a new PICT resource.
  47.  
  48.  
  49. 1.7b1
  50. -----
  51.  
  52. Added the option to fake an activate event, to make programs that use
  53. a private scrap, such as ASLEdit+, adopt my scrap data.
  54.  
  55.  
  56. 1.7b0
  57. ---
  58.  
  59. The previous version left a purgeable block in the application heap.  If
  60. used repeatedly, it left a bunch of such blocks.  In TeachText in
  61. particular, this could cause the application to think that it was low
  62. on memory, if it relied on FreeMem().  So now I use a trick of putting a
  63. little code in ToolScratch to call DisposeHandle.  This is modelled on
  64. some code in the UMPG by Joe Holt.
  65.  
  66. Fixed a memory leak: I forgot to dispose of text_port.
  67.  
  68. Susan's dialog changes, with new embedded resources.
  69.  
  70. Changed main routine to do a bit more in the real FKEY, less in the copy,
  71. so that the copy will not be made if we are configuring or if the
  72. selected rectangle is empty.
  73.  
  74.  
  75. 1.6
  76. ---
  77.  
  78. Now there is the option of copying text in a selected rectangle.
  79.  
  80. Renamed the preferences file 'Text Capture 1.6 Settings'.  Including
  81. the version number allows me to change the format of the file without
  82. worrying about checking the version.  Also, I use the file type 'pref',
  83. which causes Finder 7 to show a pref icon.
  84.  
  85.  
  86. 1.5
  87. ---
  88.  
  89. Put in options on how to separate lines and whether to copy stuff drawn
  90. outside the window.  This involves a configuration dialog and a prefs
  91. file.  Static data is used to create DLOG and DITL resources in the
  92. prefs file.
  93.  
  94. Made the whole thing into one FKEY resource, no longer with a separate
  95. CUST resource.  Had some trouble with RecoverHandle giving a -115 error.
  96. Apparently if I make a change in the FKEY, I need to tell Suitcase to
  97. close and the reopen the FKEY file.
  98.  
  99.  
  100. 1.4
  101. ---
  102.  
  103. Calling SystemEdit(3) had an unfortunate effect in some DAs, like
  104. Scrapbook, of making the DA do a copy.  Under System 7, it worked if
  105. I simply removed the call to SystemEdit, but under System 6, nothing
  106. got copied to the scrap without it.  So I implemented a kludge: If the
  107. front window is a DA window, create a new window in front, but offscreen,
  108. call SystemEdit(3), then dispose of the window.
  109.  
  110.  
  111. 1.3
  112. ---
  113.  
  114. In Begin_copy, the test for a color GrafPort needed more parentheses.  I
  115. didn't realize that == has a higher precedence than &.
  116.  
  117.  
  118. 1.2
  119. ---
  120.  
  121. Changed to patching _BeginUpDate and _EndUpDate, per a suggestion of
  122. Phil Shapiro.
  123.  
  124.  
  125. 1.1
  126. ---
  127.  
  128. Abort if the front window belongs to a DA.  It seems that a DA window
  129. never gets an update event.
  130.  
  131. Removed reentrance check, because if the longword at CUST + 6 ever
  132. got munged, it stayed that way until restart.
  133.  
  134. Added StripAddress.
  135.  
  136. Manually lock the CUST handle in the FKEY.
  137.  
  138. #endif